package Test11.topic.cn.tedu;

/*练习饿汉模式(低级)*/
public class seji_eh1 {
    public static void main(String[] args) {
        op a = op.aa();
        op a1 = op.aa();
        op a2 = op.aa();
        System.out.println(a);
        System.out.println(a1);
        System.out.println(a2);
        System.out.println(a1==a2);
    }
}
class op{
    private op(){}
    private static op l=new op();
    public static op aa(){
        return l;
    }
}
